package com.xiaot.common.exception;

/**
 * @author xiaoT
 */
public enum CodeEnum {

    /**
     * 通用错误
     */
    UNKNOW(10000, "未知错误"),
    VALID(10001, "参数验证错误")
    ;

    /**
     * 状态码
     */
    private Integer code;

    /**
     * 状态码信息
     */
    private String msg;

    CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
